package com.pp.web.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pp.common.pojo.Comment;
import com.pp.web.model.vo.CommentVO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CommentMapper extends BaseMapper<Comment> {

    /**
     * 根据 postId 获取对应的 comments
     */
    List<CommentVO> findCommentsByPostId(String postId);
}
